package com.reviewit.dao;

import org.bson.types.ObjectId;

import com.google.code.morphia.Morphia;
import com.google.code.morphia.dao.BasicDAO;
import com.mongodb.Mongo;
import com.reviewit.dao.mongodb.MongoUtil;
import com.reviewit.model.Tag;

public class TagDao extends BasicDAO<Tag, ObjectId> {
	private static TagDao INSTANCE = new TagDao(MongoUtil.getMongo(),
			MongoUtil.getMorphia(), MongoUtil.getDbName());

	protected TagDao(Mongo mongo, Morphia morphia, String dbName) {
		super(mongo, morphia, dbName);
	}

	public static TagDao getInstance() {
		return INSTANCE;
	}
}